import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  keep_title: [
    { required: true, message: "保留标题不能为空", trigger: "blur" }
  ],
  keep_content: [
    { required: true, message: "保留内容不能为空", trigger: "blur" }
  ],
  start_id: [
    { required: true, message: "起始知识库id不能为空", trigger: "blur" }
  ],
  number: [{ required: true, message: "生成数量不能为空", trigger: "blur" }]
});
